﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'DeleteDetalleVentaByVenta')
	BEGIN
		DROP  Procedure  DeleteDetalleVentaByVenta
	END

GO

CREATE Procedure DeleteDetalleVentaByVenta
	@idVenta int
AS

DELETE FROM DetalleVenta WHERE IdVenta = @idVenta

GO


GRANT EXEC ON DeleteDetalleVentaByVenta TO PUBLIC

GO


